#ifndef GAME_H_
#define GAME_H_
#include <stdint.h>
#include <stddef.h>
// todo: just define now, latter I will add some call import outport

#define GAME_API

typedef struct {
    // todo: the format should be RGBA32
    uint8_t b,g,r,a;
} Color;


typedef struct
{
    size_t fps;

    uint32_t *display;
    size_t display_width;
    size_t display_height;
    // audio_sample_rate * audio_channels / fps
    int16_t *audio;
    size_t audio_sample_rate;
    size_t audio_channels;
} Game;

GAME_API Game game_init(void);
GAME_API void game_update(float dt);
GAME_API void game_key_up(int key);
GAME_API void game_key_down(int key);

#endif // GAME_H_